<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Helvetia</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <?php echo $html->css('helvetia'); ?>
  <!-- datepicker -->
  <?php echo $html->css('datepicker')."\n"; ?>
  <?php echo $javascript->link('datepicker.js')."\n"; ?>
  <!-- /datepicker -->
</head>

<body>
  <div id="container">
    <div id="band-top1"><div class="band-padding">
      <div id="company-name">
        <h1>Association Helvetia</h1>
      </div></div>
        <div style="position:relative">
        <div id="logo">
          <?php echo $html->image('logos/suisse.png'/*, array('width' => '260px')*/); ?>
        </div>
        </div>
    </div>
    
    <div id="band-top2"><div class="band-padding">
      <!--<div id="company-contact">
        <h2><?php echo $title_for_layout; ?></h2>
      </div>-->
    </div></div>

    <div id="band-top3"><div class="band-padding">
      <div id="company-moto">
      </div>
    </div></div>

    <div id="main"><div id="main-padding">
    <div id="sidebar">
      <ul>
        <li><a href="<?php echo BASEDIR; ?>/pages/home">Home</a></li>
        <?php if (!$admin) { ?>
          <li><?php echo $html->link('Authentification', '/users/login'); ?></li>
        <?php } else { ?>
          <li><?php echo $html->link('Quitter', '/users/logout'); ?> </li>
        <?php } ?>
        <li><?php echo $html->link('Recherche', '/search'); ?></li>
        <li><a href="<?php echo BASEDIR; ?>/pages/presentation">Présentation de l'association</a></li>
        <li>Evénements
          <ul>
            <li><?php echo $html->link('Liste', '/events'); ?></li>
            <?php if ($admin) { ?>
              <li><?php echo $html->link('Ajouter', '/admin/events/add'); ?></li>
            <?php } ?>
          </ul>
        </li>

        <li>Fichiers
          <ul>
            <li><?php echo $html->link('Liste', '/uploads'); ?></li>
            <?php if ($admin) { ?>
              <li><?php echo $html->link('Ajouter', '/admin/uploads/add'); ?></li>
            <?php } ?>
          </ul>
        </li>
        <?php if ($admin) { ?>
        <li>Utilisateurs
          <ul>
            <li><?php echo $html->link('Liste', '/admin/users'); ?></li>
            <li><?php echo $html->link('Ajouter', '/admin/users/add'); ?></li>
          </ul>
        </li>
        <?php } ?>
      </ul>
    </div>

    <div id="content">
      <h1><?php echo $title_for_layout; ?></h1>
		  <?php 
		    if ($session->check('Message.flash'));
		      $session->flash('flash');	
		    echo $content_for_layout; 
		  ?>
    </div>

    <div style="clear:both; height: 50px"></div>
    </div>

    <div id="footer"><div id="footer-padding">
      <div id="footer-content">
        <ul>
          <li>&copy; 2009 <a href=".">Association Helvetia</a></li>
          <li>Hébergé par <a href="#">notre hébergeur</a></li>
        </ul>
      </div>
    </div></div>
  </div>

</body>
</html>
